<?php echo '<?xml version="1.0" encoding="UTF-8"?>' ?>
<root>
	<?php foreach( $pages as $page ): ?>
		<?php if( $page->getName() && $page->getSummary() && $page->getContent() && $page->getPicture() ): ?>


			<page
				name="<?php echo $page->getName() ?>"
				text="<?php echo $page->getRawText() ?>"
				picture="<?php echo $page->getId() ?>.jpg"
				link="http://www.ttlazdynai.lt/kandidatai/biografija<?php echo $page->getSlugName() ?>id/<?php echo $page->getId()?>"
			/>
		<?php endif; ?>
	<?php endforeach; ?>
</root>